package com.gongj.openfeign.client;

import com.gongj.openfeign.dto.BankInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "appUser",path = "/bank")
public interface BankClient {

    @PostMapping
    String saveBankInfo(@RequestBody BankInfoDTO bankDTO);

    @GetMapping("/getInfo")
    public String getInfo(@RequestParam("name") String name);
}
